import Mock from 'mockjs'
Mock.mock('/login', 'post', (ops) => {
    var { username, password } = JSON.parse(ops.body)
    if (username === 'admin' && password === '123456') {
        return {code: 200,msg: '登录成功',token:Mock.Random.word()}//
    } else {
        return {code: 400,msg: '登录失败'}
    }
})